/* luck.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #0a0a16;
    color: #e0e0ff;
    min-height: 100vh;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(41, 10, 89, 0.2) 0%, transparent 20%),
        radial-gradient(circle at 80% 70%, rgba(10, 30, 89, 0.15) 0%, transparent 20%),
        linear-gradient(45deg, #0a0a16 25%, #0f0f1f 25%, #0f0f1f 50%, #0a0a16 50%, #0a0a16 75%, #0f0f1f 75%, #0f0f1f 100%);
    background-size: 100% 100%, 100% 100%, 10px 10px;
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* 赛博朋克风格网格背景 */
.container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -1;
}

/* 标题区域 */
.title-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: rgba(10, 15, 40, 0.7);
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.title-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ffff, transparent);
    animation: scanline 3s linear infinite;
}

@keyframes scanline {
    0% { left: -100%; }
    100% { left: 100%; }
}

.main-title {
    display: flex;
    flex-direction: column;
}

.title-text {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(90deg, #00ffff, #ff00ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.title-sub {
    font-size: 1rem;
    color: #a0a0ff;
    letter-spacing: 4px;
    margin-top: 5px;
}

.time-display {
    text-align: right;
    font-family: 'Courier New', monospace;
}

.date {
    font-size: 1.4rem;
    color: #00ffff;
    margin-bottom: 5px;
}

.time {
    font-size: 1.8rem;
    color: #ff00ff;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(255, 0, 255, 0.7);
}

/* 功能选择区域 */
.function-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    padding: 15px;
    background-color: rgba(15, 20, 45, 0.7);
    border-radius: 12px;
    border: 1px solid rgba(0, 150, 255, 0.3);
}

.function-btn {
    flex: 1;
    min-width: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    background-color: rgba(20, 25, 60, 0.8);
    border-radius: 10px;
    border: 1px solid rgba(0, 150, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.function-btn:hover {
    transform: translateY(-5px);
    border-color: #00ffff;
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.3);
    background-color: rgba(30, 35, 80, 0.9);
}

.function-btn.active {
    border-color: #ff00ff;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.5);
    background-color: rgba(40, 10, 70, 0.9);
}

.function-btn i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #00ffff;
}

.function-btn.active i {
    color: #ff00ff;
}

.function-btn span {
    font-size: 1.1rem;
    font-weight: 600;
    color: #c0c0ff;
}

/* 结果展示区域 */
.result-container {
    flex: 1;
    margin-bottom: 30px;
}

.result-panel {
    display: none;
    background-color: rgba(15, 20, 45, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(0, 150, 255, 0.3);
    overflow: hidden;
    box-shadow: 0 0 25px rgba(0, 100, 255, 0.2);
}

.result-panel.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: rgba(10, 15, 40, 0.9);
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.panel-header h2 {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    color: #00ffff;
}

.panel-header h2 i {
    margin-right: 10px;
}

.system-status {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #a0a0ff;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ff5555;
    margin-right: 8px;
    box-shadow: 0 0 8px #ff5555;
}

.status-indicator.active {
    background-color: #00ff88;
    box-shadow: 0 0 8px #00ff88;
}

.panel-content {
    padding: 25px;
}

/* 今日运势面板样式 */
.luck-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
    padding: 20px;
    background-color: rgba(20, 25, 60, 0.6);
    border-radius: 10px;
    border: 1px solid rgba(0, 200, 255, 0.2);
}

.luck-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.score-value {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ff00ff;
    text-shadow: 0 0 15px rgba(255, 0, 255, 0.7);
}

.score-label {
    font-size: 1rem;
    color: #a0a0ff;
    margin-top: 5px;
}

.luck-details {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    padding: 12px;
    background-color: rgba(30, 35, 80, 0.5);
    border-radius: 8px;
    border-left: 3px solid #00ffff;
}

.detail-label {
    font-size: 0.9rem;
    color: #a0a0ff;
    margin-bottom: 5px;
}

.detail-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
}

.luck-analysis {
    margin-bottom: 25px;
}

.luck-analysis h3 {
    display: flex;
    align-items: center;
    color: #00ffff;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.luck-analysis h3 i {
    margin-right: 10px;
}

.luck-analysis p {
    line-height: 1.6;
    color: #d0d0ff;
    padding: 15px;
    background-color: rgba(20, 25, 60, 0.5);
    border-radius: 8px;
    border-left: 3px solid #ff00ff;
}

/* 按钮样式 */
.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 25px;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn i {
    margin-right: 8px;
}

.btn-primary {
    background: linear-gradient(90deg, #0066ff, #00ccff);
    color: white;
    box-shadow: 0 0 15px rgba(0, 102, 255, 0.5);
}

.btn-primary:hover {
    background: linear-gradient(90deg, #00ccff, #0066ff);
    box-shadow: 0 0 20px rgba(0, 204, 255, 0.7);
    transform: translateY(-3px);
}

.btn-secondary {
    background: linear-gradient(90deg, #9900ff, #cc00ff);
    color: white;
    box-shadow: 0 0 15px rgba(153, 0, 255, 0.5);
}

.btn-secondary:hover {
    background: linear-gradient(90deg, #cc00ff, #9900ff);
    box-shadow: 0 0 20px rgba(204, 0, 255, 0.7);
    transform: translateY(-3px);
}

/* 占卜面板样式 */
.divination-input {
    margin-bottom: 25px;
}

.divination-input h3 {
    color: #00ffff;
    margin-bottom: 15px;
}

.input-group {
    display: flex;
    gap: 10px;
}

.input-group input {
    flex: 1;
    padding: 12px 15px;
    background-color: rgba(20, 25, 60, 0.8);
    border: 1px solid rgba(0, 200, 255, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
}

.input-group input:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.result-card {
    background-color: rgba(20, 25, 60, 0.6);
    border-radius: 10px;
    border: 1px solid rgba(0, 200, 255, 0.3);
    overflow: hidden;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: rgba(10, 15, 40, 0.8);
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.card-header h4 {
    color: #00ffff;
}

.card-energy {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #a0a0ff;
}

.energy-bar {
    width: 60px;
    height: 6px;
    background-color: rgba(255, 0, 255, 0.3);
    border-radius: 3px;
    margin-right: 10px;
    overflow: hidden;
    position: relative;
}

.energy-bar::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 78%;
    background-color: #00ff88;
    box-shadow: 0 0 5px #00ff88;
}

.card-content {
    padding: 20px;
}

/* 塔罗牌面板样式 */
.tarot-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tarot-card {
    width: 150px;
    height: 250px;
    perspective: 1000px;
    cursor: pointer;
}

.tarot-card .card-back, .tarot-card .card-front {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px;
    transition: transform 0.8s;
}

.tarot-card .card-back {
    background: linear-gradient(45deg, #0a0a20, #1a1a40);
    border: 2px solid rgba(0, 255, 255, 0.5);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.card-pattern {
    width: 80%;
    height: 80%;
    background: 
        radial-gradient(circle at center, transparent 30%, rgba(0, 255, 255, 0.1) 70%),
        repeating-linear-gradient(45deg, transparent, transparent 5px, rgba(0, 255, 255, 0.1) 5px, rgba(0, 255, 255, 0.1) 10px);
    border-radius: 8px;
}

.tarot-card .card-front {
    background: linear-gradient(135deg, #2a1a50, #1a0a30);
    border: 2px solid rgba(255, 0, 255, 0.5);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.3);
    transform: rotateY(180deg);
    text-align: center;
}

.tarot-card.flipped .card-back {
    transform: rotateY(180deg);
}

.tarot-card.flipped .card-front {
    transform: rotateY(0);
}

.tarot-card h4 {
    color: #ff00ff;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.tarot-card .card-name {
    color: #00ffff;
    font-weight: 600;
    font-size: 1.1rem;
}

.tarot-analysis {
    margin-bottom: 25px;
}

.tarot-analysis h3 {
    color: #00ffff;
    margin-bottom: 15px;
}

.tarot-analysis p {
    line-height: 1.6;
    color: #d0d0ff;
    padding: 15px;
    background-color: rgba(20, 25, 60, 0.5);
    border-radius: 8px;
}

/* 财运面板样式 */
.fortune-meter {
    margin-bottom: 30px;
}

.meter-label {
    color: #00ffff;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.meter-container {
    height: 40px;
    background-color: rgba(20, 25, 60, 0.6);
    border-radius: 20px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid rgba(0, 200, 255, 0.3);
    position: relative;
}

.meter-bar {
    height: 100%;
    width: 100%;
    position: relative;
}

.meter-fill {
    height: 100%;
    width: 65%;
    background: linear-gradient(90deg, #0066ff, #00ccff);
    border-radius: 20px;
    box-shadow: 0 0 15px rgba(0, 102, 255, 0.7);
}

.meter-value {
    position: absolute;
    top: 0;
    right: 15px;
    height: 100%;
    display: flex;
    align-items: center;
    color: #ffffff;
    font-weight: bold;
    font-size: 1.2rem;
}

.meter-details {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.meter-details .detail {
    flex: 1;
    min-width: 150px;
    padding: 12px;
    background-color: rgba(30, 35, 80, 0.5);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.meter-details .value {
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 4px;
}

.value.high {
    background-color: rgba(0, 255, 128, 0.2);
    color: #00ff88;
}

.value.medium {
    background-color: rgba(255, 200, 0, 0.2);
    color: #ffcc00;
}

.value.low {
    background-color: rgba(255, 50, 50, 0.2);
    color: #ff5555;
}

.fortune-analysis h3 {
    display: flex;
    align-items: center;
    color: #00ffff;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.fortune-analysis h3 i {
    margin-right: 10px;
}

.fortune-analysis p {
    line-height: 1.6;
    color: #d0d0ff;
    padding: 15px;
    background-color: rgba(20, 25, 60, 0.5);
    border-radius: 8px;
}

/* 桃花运势面板样式 */
.love-status {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.love-meter {
    min-width: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: rgba(40, 10, 60, 0.6);
    border-radius: 10px;
    border: 1px solid rgba(255, 0, 255, 0.3);
}

.meter-label {
    color: #ff00ff;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.love-value {
    font-size: 3rem;
    font-weight: 800;
    color: #ff00ff;
    text-shadow: 0 0 15px rgba(255, 0, 255, 0.7);
}

.love-desc {
    font-size: 1rem;
    color: #a0a0ff;
    margin-top: 5px;
}

.love-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    background-color: rgba(20, 25, 60, 0.6);
    border-radius: 10px;
}

.love-details .detail {
    display: flex;
    align-items: center;
    gap: 15px;
}

.love-details .label {
    min-width: 100px;
    color: #a0a0ff;
}

.progress-bar {
    flex: 1;
    height: 12px;
    background-color: rgba(30, 35, 80, 0.8);
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff00ff, #ff88ff);
    border-radius: 6px;
    box-shadow: 0 0 8px rgba(255, 0, 255, 0.5);
}

.love-details .percent {
    min-width: 50px;
    text-align: right;
    color: #ffffff;
    font-weight: bold;
}

.love-analysis h3 {
    display: flex;
    align-items: center;
    color: #00ffff;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.love-analysis h3 i {
    margin-right: 10px;
}

.love-analysis p {
    line-height: 1.6;
    color: #d0d0ff;
    padding: 15px;
    background-color: rgba(20, 25, 60, 0.5);
    border-radius: 8px;
}

/* 抽签面板样式 */
.lottery-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 25px;
}

.lottery-stick {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.stick-top, .stick-bottom {
    width: 40px;
    height: 20px;
    background-color: #8b4513;
    border-radius: 10px;
}

.stick-body {
    width: 60px;
    height: 200px;
    background: linear-gradient(to right, #8b4513, #a0522d, #8b4513);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 5px 0;
    position: relative;
    overflow: hidden;
    border: 2px solid #5d2906;
}

.stick-body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    animation: shine 2s infinite;
}

@keyframes shine {
    100% { transform: translateX(100%); }
}

.stick-text {
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffcc00;
    letter-spacing: 10px;
    text-shadow: 0 0 5px rgba(255, 204, 0, 0.7);
}

.lottery-result {
    flex: 2;
    min-width: 300px;
    padding: 20px;
    background-color: rgba(20, 25, 60, 0.6);
    border-radius: 10px;
    border: 1px solid rgba(0, 200, 255, 0.3);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.result-header h3 {
    color: #00ffff;
}

.luck-level {
    padding: 5px 15px;
    background-color: rgba(255, 0, 255, 0.2);
    border-radius: 20px;
    color: #ff00ff;
    font-weight: bold;
    border: 1px solid rgba(255, 0, 255, 0.5);
}

/* 状态栏 */
.status-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 15px 20px;
    background-color: rgba(10, 15, 40, 0.9);
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    font-size: 0.9rem;
}

.status-item {
    display: flex;
    align-items: center;
    margin: 5px 10px;
}

.status-icon {
    margin-right: 8px;
    color: #00ffff;
}

.status-value {
    color: #00ff88;
    font-weight: bold;
    margin-left: 5px;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .function-btn {
        min-width: 120px;
    }
}

@media (max-width: 768px) {
    .title-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .time-display {
        align-self: flex-end;
    }
    
    .function-btn {
        min-width: calc(50% - 15px);
    }
    
    .luck-details {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tarot-card {
        width: 120px;
        height: 200px;
    }
    
    .love-status {
        flex-direction: column;
    }
    
    .status-bar {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .title-text {
        font-size: 2rem;
    }
    
    .function-btn {
        min-width: 100%;
    }
    
    .luck-details {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}